<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>产品售后服务中心</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
        }
        
        body {
            background-color: #f8f9fa;
            color: #333;
            line-height: 1.6;
            padding: 0;
            max-width: 100%;
            overflow-x: hidden;
        }
        
        .container {
            width: 100%;
            padding: 15px;
        }
        
        header {
            background: linear-gradient(135deg, #1e5799 0%, #207cca 100%);
            color: white;
            padding: 25px 20px;
            text-align: center;
            border-radius: 12px;
            margin-bottom: 20px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }
        
        h1 {
            font-size: 1.8rem;
            margin-bottom: 10px;
            font-weight: 600;
        }
        
        .search-box {
            background: white;
            padding: 15px;
            border-radius: 10px;
            margin-bottom: 20px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }
        
        .search-input {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #e1e5e9;
            border-radius: 8px;
            font-size: 1rem;
            background-color: #f8f9fa;
        }
        
        .search-input:focus {
            outline: none;
            border-color: #3498db;
            background-color: white;
        }
        
        .products-list {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        
        .product-item {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            display: flex; /* 关键：保持横排布局 */
            align-items: center;
            padding: 15px;
            gap: 15px;
        }
        
        .product-item:active {
            transform: scale(0.98);
        }
        
        .product-image {
            width: 100px;
            height: 100px;
            object-fit: cover;
            border-radius: 8px;
            flex-shrink: 0;
        }
        
        .product-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }
        
        .product-title {
            font-size: 1.2rem;
            margin-bottom: 8px;
            color: #2c3e50;
            font-weight: 600;
        }
        
        .product-description {
            color: #7f8c8d;
            font-size: 0.9rem;
            margin-bottom: 12px;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .video-link {
            display: inline-block;
            text-align: center;
            background: linear-gradient(135deg, #61b6f0 0%, #0a5dda 100%);
            color: white;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.9rem;
            padding: 8px 12px;
            border-radius: 6px;
            transition: all 0.3s ease;
            align-self: flex-start;
        }
        
        .video-link:active {
            background: linear-gradient(135deg, #2980b9 0%, #2471a3 100%);
            transform: scale(0.95);
        }
        
        footer {
            text-align: center;
            margin-top: 30px;
            padding: 20px 15px;
            color: #7f8c8d;
            font-size: 0.85rem;
            border-top: 1px solid #eee;
        }
        
        .contact-info {
            margin-top: 10px;
            font-size: 1rem;
            color: #3498db;
            font-weight: 500;
        }
        
        /* 添加一些动画效果 */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .product-item {
            animation: fadeIn 2s ease forwards;
        }
        
        .product-item:nth-child(1) { animation-delay: 0.2s; }
        .product-item:nth-child(2) { animation-delay: 0.4s; }
        .product-item:nth-child(3) { animation-delay: 0.6s; }
        .product-item:nth-child(4) { animation-delay: 0.8s; }
        .product-item:nth-child(5) { animation-delay: 1.0s; }
        .product-item:nth-child(6) { animation-delay: 1.2s; }
        
        /* 响应式调整 - 确保在手机端也保持横排 */
        @media (max-width: 500px) {
            .product-item {
                flex-direction: row; /* 关键：确保在手机端也是横排 */
                padding: 12px;
                gap: 12px;
            }
            
            .product-image {
                width: 100px;
                height: 100px;
            }
            
            .product-title {
                font-size: 1.1rem;
            }
            
            .product-description {
                font-size: 0.85rem;
                -webkit-line-clamp: 2;
            }
        }
        
        @media (min-width: 768px) {
            .container {
                max-width: 600px;
                margin: 0 auto;
            }
            
            .product-item {
                padding: 18px;
                gap: 18px;
            }
            
            .product-image {
                width: 120px;
                height: 120px;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <header>
            <h2>产品教程服务中心</h2>
        </header>
        
        <div class="products-list">
            <!-- 产品1 -->
            <div class="product-item" onclick="window.location.href='video-tutorial.html?product=1'">
                <img src="https://images.unsplash.com/photo-1526170375885-4d8ecf77b99f?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=80" alt="智能扫地机器人" class="product-image">
                <div class="product-content">
                    <div>
                        <h3 class="product-title">长条型灯条</h3>
                    </div>
                    <a href="video-tutorial.html?product=1" class="video-link">观看教程</a>
                </div>
            </div>
            
            <!-- 产品2 -->
            <div class="product-item" onclick="window.location.href='video-tutorial.html?product=2'">
                <img src="https://images.unsplash.com/photo-1526170375885-4d8ecf77b99f?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=80" alt="空气净化器" class="product-image">
                <div class="product-content">
                    <div>
                        <h3 class="product-title">马蹄形灯条</h3>
                    </div>
                    <a href="video-tutorial.html?product=2" class="video-link">观看教程</a>
                </div>
            </div>
            
            <!-- 产品3 -->
            <div class="product-item" onclick="window.location.href='video-tutorial.html?product=3'">
                <img src="https://images.unsplash.com/photo-1526170375885-4d8ecf77b99f?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=80" alt="智能咖啡机" class="product-image">
                <div class="product-content">
                    <div>
                        <h3 class="product-title">恒流电源驱动</h3>
                    </div>
                    <a href="video-tutorial.html?product=3" class="video-link">观看教程</a>
                </div>
            </div>
        </div>
        
        <footer>
            <p>产品售后服务中心</p>
        </footer>
    </div>
</body>
</html>